package cn.accp.birdWar.base;

/**
 * 鸟的抽象类，继承Shout接口
 * 
 * @author Jiangqs
 * 
 */
public abstract class Bird implements Shout {

	protected String name;
	protected double weight;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getWeight() {
		return weight;
	}

	public void setWeight(double weight) {
		this.weight = weight;
	}

	public Bird() {
	}

	public Bird(String name, double weight) {
		super();
		this.name = name;
		this.weight = weight;
	}

	@Override
	public String toString() {

		return this.name + "," + this.weight;
	}

}
